]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-theme-node: Don't update resources on each paint
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 10 Jul 2013 00:06:05 +0000 (02:06 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 10 Jul 2013 15:35:11 +0000 (17:35 +0200)
Up to commit 318283fc705bd9e9, resources were only updated when
the allocated size had changed. There is no good reason to change
this for theme nodes without box shadows.

https://bugzilla.gnome.org/show_bug.cgi?id=703909

src/st/st-theme-node-drawing.c

index 438802993d781f5866817bcda97ee9042372482f..1a2cea316aba5d2d1af9ee235a338b20fce9c38e 100644 (file)
@@ -2397,7 +2397,7 @@ st_theme_node_paint (StThemeNode           *node,
 
       node->rendered_once = TRUE;
     }
-  else
+  else if (state->alloc_width != width || state->alloc_height != height)
     st_theme_node_update_resources (state, node, width, height);
 
   /* Rough notes about the relationship of borders and backgrounds in CSS3;